<template>
	<view class="content">
		<view class="item-top unify-flex">
			<view class="item-top-left unify-weight unify-flex">
				<!-- <image class="item-image" :src="errorImage" mode=""></image> -->
				{{storeName}}
				<view class="iconfont el-icon-icon12 unify-rotate90"></view>
			</view>
			<view class="item-top-right" v-if="status===1">待付款</view>
			<view class="item-top-right" v-if="status===2">待派送</view>
			<view class="item-top-right" v-if="status===3">已派送</view>
			<view class="item-top-right" v-if="status===4">已完成</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			storeName:{
				type:String,
				default:null
			},
			status:{
				type:Number,
				default:1
			}
		},
		data() {
			return {
				errorImage: this.$mAssetsPath.errorImage,
				appName: this.$mSettingConfig.appName
			}
		}
	}
</script>

<style lang="scss" scoped>
	$image: 50rpx;
	
	.item-top {
		height: 96rpx;
		align-items: center;
		justify-content: space-between;
	}
	
	.item-top-left {
		font-size: $uni-font-size-base;
		align-items: center;
	}
	
	.item-image {
		width: $image;
		height: $image;
		border-radius: 50%;
		margin-right: 20rpx;
	}
	
	.item-desc {
		font-weight: 500;
	}
	
	.el-icon-icon12 {
		font-size: $uni-font-size-sm;
		margin-top: 5rpx;
		color: $uni-text-color-grey;
	}
	
	.item-top-right {
		font-size: $uni-font-size-sm;
	}
</style>
